<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title><g:layoutTitle default="WebAlbum" /></title>
        <g:layoutHead />
    </head>
    <body>
                <h1>WebAlbum</h1>
                <wa:ifUser not="true">
                    <g:form action="login" method="post">
                        <p class="login">
                            Name: <input type="text" size="10" maxlength="40" name="name"/>
                            Password: <input type="password" name="password" size="10" maxlength="40"/>
                            <input type="hidden" name="url" value="${createLink(params)}"/>
                           <input type="submit" value="Log in"/></span>
                        </p>
                    </g:form>
                </wa:ifUser>
                <g:if test="${flash.loginNotice}">
                    <p>${flash.loginNotice}</p>
                </g:if>
                    <g:link controller="person" action="list">
                        Persons<wa:ifDevEnv>(${Person.count()})</wa:ifDevEnv>
                    </g:link>
                    <g:link  controller="album" action="list">
                        Albums<wa:ifDevEnv>(${Album.count()})</wa:ifDevEnv>
                    </g:link>
                    <g:link  controller="picture" action="list">
                        Pictures<wa:ifDevEnv> (${Picture.count()})</wa:ifDevEnv>
                    </g:link>

            <g:layoutBody />		
	   <hr><br> 
	  WebAlbum. Brought to you by <a href="http://www.ilabs.no/">iLabs</a>, powered by <a href="http://grails.org/">Grails</a>.</p>
    </body>	
</html>
